package com.bracelet.service;

import com.bracelet.beans.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RegisterService {
    @Autowired
    MethodService methodService;
   public boolean register(User user){
       User user1 = methodService.FindUser(user);
       if(user1 != null)
           return false;
       else{
           return methodService.SaveUser(user);
       }
   }
}
